__kernel void MatrixMultiplication_KERNEL(__global int* matrixA, __global int* matrixB, __global int* matrixC, int A, int B)
{
	int tx = get_global_id(0);
	int ty = get_global_id(1);

	int sum = 0;

	for(int k = 0; k < A; ++k){
		sum += matrixA[ty * A + k] * matrixB[k * B + tx];
	}
	matrixC[ty * A + tx] = sum;

}

__kernel void ScalarMatrix_KERNELf(__global int* matX, int A, int mult)
{
	int tx = get_global_id(0) + get_global_id(1) * get_global_size(0);
	
	
	int result = matX[tx] * mult;
	matX[tx] = result;

}

__kernel void ScalarMatrix_KERNEL(__global int* matX, int A, int mult)
{
	int tx = get_global_id(0);
	int ty = get_global_id(1);
	
	int result = matX[ty * A + tx] * mult;
	matX[ty * A + tx] = result;

}